<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
//--------------------------------Liempieza de la sesión 

HttpSession sesion = request.getSession();
if(sesion!=null){
	sesion.invalidate();
}

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="../css/login.css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Login</title>
<script type="text/javascript">
function validar(){

	document.getElementById("res").value="./MontarEmpresaEnSesion";		
	document.getElementById("datos").action="../FrontController";
	document.getElementById("datos").submit();
}
</script>

</head>
<body>
<form id="datos" name="datos" method="post" action="">
<div id="entrada" name="entrada"  style="margin-top: 30px;">
	<input type="hidden" id="res" name="res" value="">
	<div class="etiqueta" style="margin: 40px 0px 0px 100px;" >Usuario</div>
	<div><input class="cajatexto" type="text" id="cif" name="cif"></div>
	<div class="etiqueta" style="margin: 30px 0px 0px 100px">Contraseña</div>
	<div><input class="cajatexto" type="password" id="pass" name="pass"></div>
	<div class="etiqueta" style="margin: 30px 0px 0px 100px">Acceso a entidad publica&nbsp;&nbsp;&nbsp;<input type="checkbox" id="pub" name="pub"></div>
	<div><input class="boton" type="button" value="Entrar" onclick="validar()"></div>
</div>
</form>
</body>

<script type="text/javascript">
document.getElementById("cif").focus();
</script>
</html>